package com.guli.mall.pms.feign;

import com.guli.common.to.SkuHasStockTo;
import com.guli.common.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/*
 * @Author 罗
 * @date 2020/10/9 - 5:49 下午
 */
@FeignClient(name = "ware-service")
public interface WareInfoServiceFeignClient {

    @GetMapping("wms/waresku/getWareSkuBySkuId/{skuId}")
    public Map<String,String> getWareSkuBySkuId(@PathVariable("skuId")Long skuId);

    @PostMapping("wms/waresku/judgeStockExist")
    @ApiOperation("通过skuId判断该sku是否有库存")
    R judgeStockExist(@RequestBody List<Long> skuId);
}
